<?php
/**
 * The template for displaying all pages.
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site will use a
 * different template.
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */

get_header(); ?>
<div id="primary">
    <div id="content" role="main">
          <?php while ( have_posts() ) : the_post(); ?>
               <?php if( is_home () || is_front_page() ): ?>
        <div id="js_slide_show">
            <img alt="Peripheria" src="<?php bloginfo("template_url") ?>/social.png" />
        </div>
        <?php get_template_part( 'content', 'page' ); ?>
        <div id="js_social">
            <div id="js_fb">
                <img alt="Peripheria" src="<?php bloginfo("template_url") ?>/fb.png" />
            </div>
            <div id="js_tw">
                <img alt="Peripheria" src="<?php bloginfo("template_url") ?>/tw.png" />
            </div>
            <div class="clear"></div>
        </div>
       <?php else: ?>
            <?php get_template_part( 'content', 'page' ); ?>
        <?php endif ?>
<?php endwhile; // end of the loop. ?>
    </div><!-- #content -->
</div><!-- #primary -->

<?php get_footer(); ?>